package BanyuanClub.Study.Day0225;

import java.nio.file.FileAlreadyExistsException;

public class TextFinally {
    public static void main(String[] args) {
        try {
            String s = null;
            s.concat(s);
            System.out.println(111);
        }catch (NullPointerException e){
            e.printStackTrace();
        //finally 在try异常停止时继续执行finally内的语句
        }finally {
            System.out.println(222);
        }
    }
}
